﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/OneColumn.Master" AutoEventWireup="true"
    CodeBehind="Talks.aspx.cs" Inherits="SharingCenter.Web.Mod.Talks.Talks" %>

<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    分享园区首页
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <h2 class="bb">
        分享园区</h2>
    <div class="talks fc">
        <div class="left wide-c bdr-r bdr-s-s">
            <asp:ListView ID="lvCategory" runat="server" DataSourceID="LinqDataSource1">
                <LayoutTemplate>
                    <div runat="server" id="itemPlaceholder" />
                </LayoutTemplate>
                <ItemTemplate>
                    <div class="ctn1 fc c">
                        <div class="ctn-p-r left p1">
                            <span>
                                <img src="../../Content/images/icons/bubble_16.png" alt="" />
                            </span>
                            <asp:HyperLink ID="HyperLink1" runat="server" CssClass="sz-m" Text='<%#Eval("CategoryName") %>'
                                NavigateUrl='<%#Eval("PostCategoryId", "Threads.aspx?c={0}") %>'></asp:HyperLink>
                            <div>
                                <asp:Label CssClass="litetext" ID="Label1" runat="server" Text='<%#Eval("Description") %>'></asp:Label>
                            </div>
                        </div>
                        <div class="right">
                            <asp:Label ID="Label2" runat="server" Text='<%#Eval("TotalThreads", "{0}个话题") %>'></asp:Label>
                        </div>
                    </div>
                </ItemTemplate>
                <ItemSeparatorTemplate>
                    <div class="hr1">
                    </div>
                </ItemSeparatorTemplate>
                <EmptyDataTemplate>
                    <myuc:MessageBox ID="MessageBox1" runat="server" MessageType="Generic" Text="目前没有版块。" />
                </EmptyDataTemplate>
            </asp:ListView>
            <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="SharingCenter.Web.Classes.scDataContext"
                OrderBy="OrderId" Select="new (PostCategoryId, CategoryName, Description, OrderId, TotalThreads, ContextType, ContextId, Enabled)"
                TableName="Sc_PostCategories" Where="Enabled == @Enabled &amp;&amp; ContextType == @ContextType">
                <WhereParameters>
                    <asp:Parameter DefaultValue="true" Name="Enabled" Type="Boolean" />
                </WhereParameters>
            </asp:LinqDataSource>
        </div>
        <div class="wide-s">
            <h3 class="w7 nom">
                    我看过的话题</h3>
            <div class="sc bdr-nt">
                <div class="c">
                    <asp:ListView ID="lvMyReadHistory" runat="server">
                        <LayoutTemplate>
                            <ul>
                                <li runat="server" id="itemPlaceholder"></li>
                            </ul>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <li>
                                <asp:HyperLink ID="HyperLink2" runat="server" Text='<%#Eval("ThreadTitle") %>' NavigateUrl='<%#Eval("ThreadId", "Thread.aspx?t={0}") %>' />
                            </li>
                        </ItemTemplate>
                        <EmptyDataTemplate>
                            <myuc:IconSet CssClass="nss ns-info" runat="server" TextCssClass="litetext" Text="目前没有看过任何话题。" />
                        </EmptyDataTemplate>
                    </asp:ListView>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
